import request from '@/utils/request'

// 查询护士管理列表
export function listNurse(query) {
  return request({
    url: '/manager/nurse/list',
    method: 'get',
    params: query
  })
}

// 查询护士管理详细
export function getNurse(nurseID) {
  return request({
    url: '/manager/nurse/' + nurseID,
    method: 'get'
  })
}

// 新增护士管理
export function addNurse(data) {
  return request({
    url: '/manager/nurse',
    method: 'post',
    data: data
  })
}

export function modifyPass(data) {
  return request({
    url: '/manager/nurse/modifyPass',
    method: 'post',
    data: data
  })
}


// 修改护士管理
export function updateNurse(data) {
  return request({
    url: '/manager/nurse',
    method: 'put',
    data: data
  })
}

// 删除护士管理
export function delNurse(nurseID) {
  return request({
    url: '/manager/nurse/' + nurseID,
    method: 'delete'
  })
}

// 导出护士管理
export function exportNurse(query) {
  return request({
    url: '/manager/nurse/export',
    method: 'get',
    params: query
  })
}

//获取科室列表
export function getDepartList(){
  return request({
    url: '/manager/depart/list',
    method: 'get',
  })
}

// 冻结护士
export function lightNurse(nurseID) {
  return request({
    url: '/manager/nurse/light/' + nurseID,
    method: 'put',
  })
}
